<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>v-else-if</title>
<!--引入Vue库-->
<script src="vue.js"></script>
</head>
<body>	
<div id="main">
  <p v-if="rank==='vip'">你好！vip会员</p>
  <p v-else-if="rank==='plus'">你好！plus会员</p>
  <p v-else>你好！请登录</p>
</div>
<script>
  var vm=new Vue({ 
      el: '#main', 
      data: { 
          rank:'plus'
        }
      })
</script>
</body>
</html>
